// 任务项目接口
export interface Task {
  id: string;
  type: string;
  name: string;
  initiator: string;
  initiateTime: string;
  currentStep: string;
  currentHandler: string;
  status: string;
  team?: string;
}

// 分页信息接口
export interface Pagination {
  currentPage: number;
  totalItems: number;
  pageSize: number;
  totalPages: number;
}

// 筛选选项接口
export interface FilterOption {
  label: string;
  value: string;
}

// 筛选器接口
export interface Filters {
  specialTopics: FilterOption[];
  statuses: FilterOption[];
}

// 任务卡片组件Props接口
export interface TaskCardProps {
  task: Task;
  onTerminate: (taskId: string) => void;
  onDetail: (taskId: string) => void;
}

// 顶部导航栏组件Props接口
export interface TopNavBarProps {
  activeNav: string;
  onNavChange: (nav: string) => void;
  userName: string;
  userCode: string;
}

// 二级导航组件Props接口
export interface SubNavBarProps {
  activeStatus: string;
  statuses: FilterOption[];
  onStatusChange: (status: string) => void;
}

// 分页组件Props接口
export interface PaginationProps {
  pagination: Pagination;
  onChange: (page: number) => void;
}

// 主页面状态接口
export interface PageState {
  tasks: Task[];
  pagination: Pagination;
  filters: Filters;
  activeNav: string;
  activeStatus: string;
  specialTopic: string;
  searchKeyword: string;
  loading: boolean;
}

// API响应接口
export interface ApiResponse<T = any> {
  success: boolean;
  data?: T;
  message?: string;
} 